<admintpl file="header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>{:L('USER_OAUTHADMIN_INDEX')}</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('oauthadmin/index')}">
        用户昵称:
        <input type="text" name="name" style="width: 100px;" value="{:I('request.name/s','')}" placeholder="请输入用户昵称">
        排序方式:
        <select name="order" style="width:120px">
            <eq name="order" value="1">
                <option name="order" value="1" selected>时间</option>
                <else/>
                <option name="order" value="1">时间</option>
            </eq>
            <eq name="order" value="2">
                <option name="order" value="2" selected>登录次数</option>
                <else/>
                <option name="order" value="2">登录次数</option>
            </eq>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:U('oauthadmin/index')}">清空</a>
    </form>
    <form method="post" class="form-horizontal js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">ID</th>
                <th>{:L('USER_FROM')}</th>
                <th>{:L('USERNAME')}</th>
                <th>{:L('AVATAR')}</th>
                <!--<th>{:L('BINGDING_ACCOUNT')}</th>-->
                <th>{:L('FIRST_LOGIN_TIME')}</th>
                <th>{:L('LAST_LOGIN_TIME')}</th>
                <th>{:L('LAST_LOGIN_IP')}</th>
                <th>{:L('LOGIN_TIMES')}</th>
                <th>发布活动数</th>
                <th align="center">{:L('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="lists" item="vo">
                <tr>
                    <td align="center">{$vo.id}</td>
                    <td>{$vo.from}</td>
                    <td>{$vo.name}</td>
                    <td><img width="25" height="25" src="{$vo.head_img}"/></td>
                    <!--<td>{$vo['uid']|default='无'}</td>-->
                    <td>{$vo['create_time']}</td>
                    <td>{$vo['last_login_time']}</td>
                    <td>{$vo.last_login_ip}</td>
                    <td>{$vo.login_times}</td>
                    <td>{$vo.a_count}</td>
                    <td align="center">
                        <a href="{:U('Admin/activity/index',array('uid'=>$vo['id']))}">查看活动列表</a>
                        <a href="{:U('oauthadmin/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
                        <eq name="vo.dongjie" value="1">
                            <a href="{:U('oauthadmin/dongjie',array('id'=>$vo['id']))}">冻结用户</a>
                            <else/>
                            <a href="{:U('oauthadmin/canceldongjie',array('id'=>$vo['id']))}">取消冻结</a>
                        </eq>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>